package com.chance.cc.crawler.prod.command.schedule.vm.dcdapp;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.vm.dcdapp.adhoc.DCDAppBkNewsSimpleCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.vm.dcdapp.adhoc.DCDAppSeriesSimpleCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.vm.dcdapp.realtime.DCDAppBkNewsRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.vm.dcdapp.realtime.DCDAppSeriesNewsRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.vm.dcdapp.trace.DCDAppBkNewsTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.vm.dcdapp.trace.DCDAppSeriesNewsTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;
import org.junit.Test;

/**
 * @author lt
 * @version 1.0
 * @date 2021-05-13 14:27:58
 * @email okprog@sina.com
 */
public class DCDAppCommonCrawlerJobSchedule extends CommonCrawlerJobSchedule {

    public static void main(String[] args) {
//        commonCrawlerScheduleJob(DCDAppBkNewsRealtimeCrawlerSchedulerJob.crawlerScheduler());
//        commonCrawlerScheduleJob(DCDAppBkNewsTraceCrawlerSchedulerJob.crawlerScheduler());
//        commonCrawlerScheduleJob(DCDAppSeriesNewsRealtimeCrawlerSchedulerJob.crawlerScheduler());
//        commonCrawlerScheduleJob(DCDAppSeriesNewsTraceCrawlerSchedulerJob.crawlerScheduler());
    }

    public static void commonCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_5);
    }

    @Test
    public void simpleSchedule(){
//        commonCrawlerScheduleJob(DCDAppSeriesSimpleCrawlerSchedulerJob.crawlerScheduler());
        commonCrawlerScheduleJob(DCDAppBkNewsSimpleCrawlerSchedulerJob.crawlerScheduler());

    }
}
